package springmvc.requestCondition;

import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Controller;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2018/2/2.
 * "application/x-javascript;charset=utf-8;q=0.8"
 */


@Controller
public class ParamsController implements EnvironmentAware {

    private Environment environment;

    public void setEnvironment(Environment environment) {

        this.environment = environment;
    }

    public strictfp static void main(String args[]) {
//        float a=89999999999999999999999999999999999999F;
//        float b=1.9999996802856920000000000000000000000F;
//        float c=99000000000000000000000000000000000000F;
//        System.out.println("a==b?"+(a==b));//a b是相等的
//        System.out.println("b==c?"+(b==c));//a b是相等的
//
//System.out.println(c);
//
////        9999999680285692
////        16777215
//        float d=16777215.25F;
//        DecimalFormat df = new DecimalFormat("0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000");
//        System.out.println(df.format(1.4e-45f));
//
//


        //NaN和NaN是相等的，0f和-0f不等
//        System.out.println(new Float(Float.NaN).equals(Float.NaN));//true
//        System.out.println(new Float(Float.NaN).equals(Float.NaN+1));//true
//        System.out.println(new Float(0f).equals(-0f));//false


        List<String> stringList = new ArrayList(3);
        stringList.add("1");


    }


}


//
//    @ResponseBody
//    @RequestMapping(value = {"index"})
//    public String index() {
//        return "success";
//    }
